<template>
  <div class="new-tab-page large">
    <div class="page-main-title">
      二维码下载
    </div>
    <div class="content">
      <div class="tab">
        <div
          class="tab-item"
          :class="{active: currentTab === item}"
          v-for="(item, index) in tabData"
          @click="currentTab = item"
        >{{ item }}</div>
      </div>

    </div>
    <ParkManager v-if="currentTab === '车场管理方二维码'"></ParkManager>
    <ParkQr v-if="currentTab === '车场二维码'"></ParkQr>
    <ChannelQr v-if="currentTab === '通道二维码'"></ChannelQr>

  </div>
</template>


<script>
import ParkManager from "./parkManager/index.vue";
import ParkQr from "./parkQr/index.vue";
import ChannelQr from "./channelQr/index.vue";
export default {
  components: {
    ParkManager,
    ParkQr,
    ChannelQr
  },
  data() {
    return {
      tabData: ["车场管理方二维码", "车场二维码", "通道二维码"],
      currentTab: "车场二维码"
    };
  },
  methods: {}
};
</script>

<style lang='less' scoped>
@import "./index.less";
</style>
